package com.zx.mes.hyl.upms.service;

import com.zx.mes.hyl.upms.pagemodel.User;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

/**
 * @author hyl
 * @date 2017-12-4
 */
public interface RoleSecurityServiceI {

    /**
     * 通过用id找到所有的角色
     * @param user
     * @return list
     */
    List<SimpleGrantedAuthority> findAllRoleByUser(User user);

}
